package nautilus.placetaker.dto;

import java.util.ArrayList;

public class Place {
	private long _id = -1;
	private String _name;
	private String _address;
	private String _description;
	private double _lat, _lon;
	private ArrayList<String> _images = new ArrayList<String>();
	private int _categoryId;
	private String _categoryName;
	private boolean _checked = false;
	private String _audio;
	private String _lastUpdate;
	
	public long getId() {
		return _id;
	}
	public void setId(long id) {
		this._id = id;
	}
	
	public String getName() {
		return _name;
	}
	public void setName(String name) {
		this._name = name;
	}
	
	public String getCategoryName() {
		return _categoryName;
	}
	public void setCategoryName(String categoryName) {
		this._categoryName = categoryName;
	}
	public int getCategoryId() {
		return _categoryId;
	}
	public void setCategoryId(int categoryId) {
		this._categoryId = categoryId;
	}
	
	public String getImage(int index) {
		if(index >=0 && index<_images.size())
			return _images.get(index);
		return "";
	}
	
	public void addImage(String image) {
		_images.add(image);
	}
	
	public double getLatitude() {
		return _lat;
	}
	public void setLatitude(double lat) {
		this._lat = lat;
	}
	public double getLongitude() {
		return _lon;
	}
	public void setLongitude(double longitude) {
		this._lon = longitude;
	}
	public String getDescription() {
		return _description;
	}
	public void setDescription(String description) {
		this._description = description;
	}
	public String getAddress() {
		return _address;
	}
	public void setAddress(String address) {
		this._address = address;
	}
	
	public boolean isCheck(){
		return _checked;
	}
	
	public void setChecked(boolean checked){
		_checked = checked;
	}
	
	public String getAudioFile(){
		return _audio;
	}
	
	public void setAudio(String audio){
		_audio = audio;
	}
	
	public String getLastUpdate(){
		return _lastUpdate;
	}
	
	public void setLastUpdate(String lastUpdate){
		_lastUpdate = lastUpdate;
	}
}
